package com.gitee.wsl.ext.array


 fun headPlusArray(head: Byte, cols: ByteArray): ByteArray = byteArrayOf(head) + cols

 fun headPlusArray(head: Short, cols: ShortArray): ShortArray = shortArrayOf(head) + cols

 fun headPlusArray(head: Int, cols: IntArray): IntArray = intArrayOf(head) + cols

 fun headPlusArray(head: Long, cols: LongArray): LongArray = longArrayOf(head) + cols

 fun headPlusArray(head: Float, cols: FloatArray): FloatArray = floatArrayOf(head) + cols

 fun headPlusArray(head: Double, cols: DoubleArray): DoubleArray = doubleArrayOf(head) + cols

 fun headPlusArray(head: Boolean, cols: BooleanArray): BooleanArray = booleanArrayOf(head) + cols

 fun headPlusArray(head: Char, cols: CharArray): CharArray = charArrayOf(head) + cols

 inline fun <reified C> headPlusArray(head: C, cols: Array<out C>): Array<C> =
    (listOf(head) + cols.toList()).toTypedArray()

 inline fun <reified C> headPlusIterable(head: C, cols: Iterable<C>): Iterable<C> =
    (listOf(head) + cols.asIterable())
